package com.feisuanyz.lyweb01.service;

import com.feisuanyz.lyweb01.pojo.domain.CooperativePurchaseDO;
import com.feisuanyz.lyweb01.pojo.dto.CooperativePurchaseDTO;
import com.feisuanyz.lyweb01.pojo.query.CooperativePurchaseQuery;
import com.feisuanyz.lyweb01.pojo.vo.PageResult;
import java.lang.Boolean;

/**
 * 合作购买
 *
 * @author deng
 * @date 2025-02-26 11:57:37
 */
public interface CooperativePurchaseService {

    /**
     * 获取合作购买信息列表
     *
     * @param query 合作购买查询对象
     * @return
     */
    PageResult<CooperativePurchaseDO> getCooperativePurchaseList(CooperativePurchaseQuery query);

    /**
     * 获取合作购买信息详情
     *
     * @param query 合作购买查询对象
     * @return  合作购买数据对象
     */
    CooperativePurchaseDO getCooperativePurchaseInfo(CooperativePurchaseQuery query);

    /**
     * 搜索合作购买信息
     *
     * @param query 合作购买查询对象
     * @return
     */
    PageResult<CooperativePurchaseDO> searchCooperativePurchase(CooperativePurchaseQuery query);

    /**
     * 添加合作购买信息
     *
     * @param dto 合作购买对象
     * @return
     */
    Boolean addCooperativePurchase(CooperativePurchaseDTO dto);

    /**
     * 修改合作购买信息
     *
     * @param dto 合作购买对象
     * @return
     */
    Boolean updateCooperativePurchase(CooperativePurchaseDTO dto);

    /**
     * 删除合作购买信息
     *
     * @param dto 合作购买对象
     * @return
     */
    Boolean deleteCooperativePurchase(CooperativePurchaseDTO dto);
}
